import { GET, POST, DELETE, PATCH } from '@/utils/request'
const CommonService = {
    uploadImage: (data?: any) => POST('/system/image/upload', data),
    mergeImage: (data?: any) => POST('/system/image/merge', data),
    deleteImage: (data?: any) => DELETE(`/system/image/delete/${data.hash}`, data),
    uploadImageList: (data?: any) => POST(`/image/add/url`, data),
    loadImageByRefGuid: (data?: any) => POST(`/image/find/all`, data),
    deleteImageByGuid: (data?: any) => POST(`/image/delete/hash`, data),
}

export default CommonService